package dao;

import java.io.File;

import bean.UserBean;



/**
 * Class responsible for the operations of UserDAO
 * @author Otavio Lima, Laura Dutra
 *
 */
public class UserDAO extends AbstractDAO<UserBean>{
	
	private static final File DB = new File("./UserDB.xml");

	private static UserDAO instance;

	/**
	 * Constructor
	 */
	private UserDAO(){

	}


	/**
	 * Singleton 
	 * @return instance of UserDAO
	 */

	public static synchronized UserDAO getInstance(){
		if(instance == null)
			instance = new UserDAO();

		return instance;
	}


	@Override
	protected File getDBFileName() {
		return DB;
	}

}